Skip to content
This repository has been archived by the owner on Jan 20, 2024. It is now read-only.

Adding support for merging of components to simulate traits/resource types #6

Open
wants to merge 1 commit into
base: oas4_raml2
Choose a base branch
from

Conversation

antoniogarrote
Copy link

Simulating traits/resource types and type inheritance, using the JSON Patch standard as proposed in JSON Schema

Unfortunately the proposal for JSON schema is not merged yet.

}
}
},
"with": [

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is actually not clear how this example is connected to JSON Patch spec. As well as I see from JSON patch it requires op argument so JSON patch structures should look similarly to

   [
     { "op": "add", "path": "/baz", "value": "qux" }
   ]


A simple object containing the specification to allow merging multiple components in the specification, internally and externally into a single output object combining fields from all of them.

The Merge Object is defined by [JSON Patch](https://tools.ietf.org/html/rfc6902) and follows the same structure, behavior and rules.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It might be that I missing something but what I see in examples look pretty different from JSON patch.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants